Apply for Zend Framework Certification Training

MongoDb






db.article.aggregate(
  { $filter : { author : { $eq : "Joe Bloggs" } } }
);
{ name: { $not: { $eq: "Andrea Le" } } }
The following query filter uses the $lte operator to find all documents
where version is less than or equal to 4.
{ version: { $lte: 4 } }
The following query filter uses the $gt operator and Date() method to find all 
documents where the dateCreated field value is later than June 22nd, 2000.
{ dateCreated: { $gt: Date('2000-06-22') } }

< First groupBy and condition in mongodb >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top